@import '../global.less';

.layer-mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 888;
  background-color: #000;
  opacity: .5;
  outline: 0;
}

.layer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 889;
  display: flex;
  outline: 0;
  justify-content: center;
  align-items: center;

  .layer-box {
    width: 600px;
    line-height: 16px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid @border-color;
    border-radius: @radius;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
  }

  .layer-header {
    display: flex;
    padding: 12px 16px;
    line-height: 18px;
    border-bottom: 1px solid @border-color;
    border-radius: @radius @radius 0 0;
    align-items: center;

    .title {
      font-weight: 600;
      font-size: 14px;
      flex: 1;
    }

    .close {
      font-family: '楷体';
      font-size: 25px;
      color: #fff;

      &:hover {
        color: @error-color;
      }
    }
  }

  .layer-body {
    padding: 20px;

  }

  .el-form {
    padding-right: 50px;
  }

  .el-form-item__label {
    width: 95px;
    padding-top: 8px;
  }

  .layer-footer {
    padding: 18px;
    font-size: 12px;
    text-align: right;
    border-top: 1px solid @border-color;

    .btn-cancel {
      border-color: transparent;
    }
  }
}

.layer-body {
  .tips {
    padding: 10px 0;
    text-align: center;
  }

  .tips-box {
    font-size: 12px;
    color: #999;

    p {
      margin-top: 6px;
    }
  }

  .view-box {
    line-height: 18px;
    font-size: 14px;
  }
}

.layer-tips {
  .layer-mask {
    z-index: 900;
  }

  .layer {
    z-index: 901;
  }

  .layer-box {
    width: 320px;
  }
}

.layer-form-inline {
  .layer-box {
    width: 800px;
  }

  .layer-body {
    .el-form {
      padding-right: 0;
    }
  }

  .alert {
    width: 80%;
    margin-left: 20px;
  }

  .el-form--inline {
    .el-form-item {
      align-items: inherit;
    }
  }
}
